package dialog.program;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletResponse;

class TechnicalReport extends Document 
{
 	String refNo;
 
 	public TechnicalReport(String title, String reference, String authors) 
 	{
 		super(title);
 		refNo = reference;
 		this.authors = authors;
 		this.loan = null;
 		this.type = "report";
 	}

 	public String getRefNo() 
 	{
 		return refNo;
 	}

 	protected void printRefNo(HttpServletResponse response)
 		throws IOException, ServletException
 	{
 		PrintWriter writer = response.getWriter();
 		writer.println("Reference: " + getRefNo() + "<br>");
 	}

 	public void printInfo(HttpServletResponse response)
 		throws IOException, ServletException
 	{
 		printHeader(response);
 		printGeneralInfo(response);
 		printRefNo(response);
 		printAvailability(response);
 	}
}